<?php

namespace app\admin\controller;

use think\App;
use think\Controller;
use think\Request;
use think\facade\Session;

class Base extends Controller
{
    public function __construct(Request $request, App $app)
    {
        parent::__construct($request, $app);
        $username = Session::get('username','admin');
        $position = Session::get('position','admin');
        $special = Session::get('special','admin');
        $useid = Session::get('uid','admin');
        $this->assign('special',$special);
        $this->assign('username',$username);
        $this->assign('position',$position);
        $this->assign('useid',$useid);
    }

    public function index()
    {

        echo "测试";
    }

}